var str = "A";
for (let i = 10; i > 0; i--)
{
  var s = '';
  for (let j = 0; j < i; j++)
    {
      s += str;
    }
  console.log(s);
}
